package demo7;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MessageContainerTest {

    @Test
    public void test1() {
        ApplicationContext context = new ClassPathXmlApplicationContext("bean7.xml");

        MessageContainer container = context.getBean("messageContainer",MessageContainer.class);

        System.out.println(container);
    }
}
